home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 68 75 | 72 73 6c 65 79 2e 69 62 |Path: hu|rsley.ib|
|00000010| 6d 2e 63 6f 6d 21 6e 65 | 77 73 0a 46 72 6f 6d 3a |m.com!ne|ws.From:|
|00000020| 20 4d 61 78 20 57 61 74 | 65 72 6d 61 6e 20 3c 64 | Max Wat|erman <d|
|00000030| 77 61 74 65 72 40 77 69 | 67 68 74 2e 68 75 72 73 |water@wi|ght.hurs|
|00000040| 6c 65 79 2e 69 62 6d 2e | 63 6f 6d 3e 0a 4e 65 77 |ley.ibm.|com>.New|
|00000050| 73 67 72 6f 75 70 73 3a | 20 63 6f 6d 70 2e 6c 61 |sgroups:| comp.la|
|00000060| 6e 67 2e 63 0a 53 75 62 | 6a 65 63 74 3a 20 52 65 |ng.c.Sub|ject: Re|
|00000070| 3a 20 41 20 77 65 69 72 | 64 20 74 68 69 6e 67 20 |: A weir|d thing |
|00000080| 61 62 6f 75 74 20 70 72 | 69 6e 74 66 28 29 0a 44 |about pr|intf().D|
|00000090| 61 74 65 3a 20 57 65 64 | 2c 20 31 30 20 41 70 72 |ate: Wed|, 10 Apr|
|000000a0| 20 31 39 39 36 20 31 36 | 3a 30 30 3a 31 39 20 2b | 1996 16|:00:19 +|
|000000b0| 30 31 30 30 0a 4f 72 67 | 61 6e 69 7a 61 74 69 6f |0100.Org|anizatio|
|000000c0| 6e 3a 20 49 42 4d 20 55 | 4b 20 4c 61 62 6f 72 61 |n: IBM U|K Labora|
|000000d0| 74 6f 72 69 65 73 20 4c | 74 64 2e 0a 4d 65 73 73 |tories L|td..Mess|
|000000e0| 61 67 65 2d 49 44 3a 20 | 3c 33 31 36 42 43 44 30 |age-ID: |<316BCD0|
|000000f0| 33 2e 36 33 44 45 40 77 | 69 67 68 74 2e 68 75 72 |3.63DE@w|ight.hur|
|00000100| 73 6c 65 79 2e 69 62 6d | 2e 63 6f 6d 3e 0a 52 65 |sley.ibm|.com>.Re|
|00000110| 66 65 72 65 6e 63 65 73 | 3a 20 3c 34 6b 66 6c 72 |ferences|: <4kflr|
|00000120| 32 24 35 69 66 40 64 65 | 77 65 79 2e 63 73 75 6e |2$5if@de|wey.csun|
|00000130| 2e 65 64 75 3e 20 3c 31 | 30 41 50 52 31 39 39 36 |.edu> <1|0APR1996|
|00000140| 30 37 34 36 35 38 32 33 | 40 65 72 69 63 68 2e 74 |07465823|@erich.t|
|00000150| 72 69 75 6d 66 2e 63 61 | 3e 0a 52 65 70 6c 79 2d |riumf.ca|>.Reply-|
|00000160| 54 6f 3a 20 6d 61 78 2d | 6c 74 6f 6e 40 74 63 70 |To: max-|lton@tcp|
|00000170| 2e 63 6f 2e 75 6b 0a 4e | 4e 54 50 2d 50 6f 73 74 |.co.uk.N|NTP-Post|
|00000180| 69 6e 67 2d 48 6f 73 74 | 3a 20 77 69 67 68 74 2e |ing-Host|: wight.|
|00000190| 68 75 72 73 6c 65 79 2e | 69 62 6d 2e 63 6f 6d 0a |hursley.|ibm.com.|
|000001a0| 4d 69 6d 65 2d 56 65 72 | 73 69 6f 6e 3a 20 31 2e |Mime-Ver|sion: 1.|
|000001b0| 30 0a 43 6f 6e 74 65 6e | 74 2d 54 79 70 65 3a 20 |0.Conten|t-Type: |
|000001c0| 74 65 78 74 2f 70 6c 61 | 69 6e 3b 20 63 68 61 72 |text/pla|in; char|
|000001d0| 73 65 74 3d 75 73 2d 61 | 73 63 69 69 0a 43 6f 6e |set=us-a|scii.Con|
|000001e0| 74 65 6e 74 2d 54 72 61 | 6e 73 66 65 72 2d 45 6e |tent-Tra|nsfer-En|
|000001f0| 63 6f 64 69 6e 67 3a 20 | 37 62 69 74 0a 58 2d 4d |coding: |7bit.X-M|
|00000200| 61 69 6c 65 72 3a 20 4d | 6f 7a 69 6c 6c 61 20 32 |ailer: M|ozilla 2|
|00000210| 2e 30 31 20 28 58 31 31 | 3b 20 49 3b 20 41 49 58 |.01 (X11|; I; AIX|
|00000220| 20 32 29 0a 0a 50 2e 42 | 65 6e 6e 65 74 74 20 77 | 2)..P.B|ennett w|
|00000230| 72 6f 74 65 3a 0a 3e 20 | 0a 3e 20 49 6e 20 61 72 |rote:.> |.> In ar|
|00000240| 74 69 63 6c 65 20 3c 34 | 6b 66 6c 72 32 24 35 69 |ticle <4|kflr2$5i|
|00000250| 66 40 64 65 77 65 79 2e | 63 73 75 6e 2e 65 64 75 |f@dewey.|csun.edu|
|00000260| 3e 2c 20 6b 63 34 34 30 | 39 37 40 63 73 75 6e 2e |>, kc440|97@csun.|
|00000270| 65 64 75 20 28 63 68 65 | 6e 29 20 77 72 69 74 65 |edu (che|n) write|
|00000280| 73 2e 2e 2e 0a 3e 20 0a | 3e 20 3e 23 69 6e 63 6c |s....> .|> >#incl|
|00000290| 75 64 65 20 3c 73 74 64 | 69 6f 2e 68 3e 0a 3e 20 |ude <std|io.h>.> |
|000002a0| 3e 69 6e 74 20 61 6e 73 | 77 65 72 3b 0a 3e 20 3e |>int ans|wer;.> >|
|000002b0| 6d 61 69 6e 28 29 0a 3e | 20 3e 7b 0a 3e 20 3e 20 |main().>| >{.> > |
|000002c0| 20 61 6e 73 77 65 72 3d | 32 2b 32 3b 0a 3e 20 3e | answer=|2+2;.> >|
|000002d0| 20 20 70 72 69 6e 74 66 | 28 22 54 68 65 20 61 6e | printf|("The an|
|000002e0| 73 77 65 72 20 69 73 20 | 25 64 5c 6e 22 29 3b 0a |swer is |%d\n");.|
|000002f0| 3e 20 3e 20 20 72 65 74 | 75 72 6e 20 30 3b 0a 3e |> > ret|urn 0;.>|
|00000300| 20 3e 7d 0a 3e 20 3e 0a | 3e 20 3e 20 20 49 6e 20 | >}.> >.|> > In |
|00000310| 70 72 69 6e 74 66 28 29 | 2c 49 20 6c 6f 73 74 20 |printf()|,I lost |
|00000320| 22 61 6e 73 77 65 72 22 | 20 69 6e 20 74 68 65 20 |"answer"| in the |
|00000330| 65 6e 64 2c 62 75 74 20 | 69 74 20 77 6f 72 6b 73 |end,but |it works|
|00000340| 2c 61 6e 64 20 67 69 76 | 65 20 6d 65 20 74 68 65 |,and giv|e me the|
|00000350| 0a 3e 20 3e 72 65 73 75 | 6c 74 20 30 2e 49 20 77 |.> >resu|lt 0.I w|
|00000360| 6f 6e 64 65 72 20 68 6f | 77 20 74 68 65 20 63 6f |onder ho|w the co|
|00000370| 6d 70 69 6c 65 72 20 68 | 61 6e 64 6c 65 20 74 68 |mpiler h|andle th|
|00000380| 69 73 20 63 6f 6e 64 69 | 74 69 6f 6e 2e 41 6c 73 |is condi|tion.Als|
|00000390| 6f 2c 69 73 20 74 68 69 | 73 0a 3e 20 3e 61 6c 6c |o,is thi|s.> >all|
|000003a0| 6f 77 20 62 79 20 43 3f | 28 62 79 20 74 68 69 73 |ow by C?|(by this|
|000003b0| 2c 20 49 20 6d 65 61 6e | 20 69 73 20 74 68 69 73 |, I mean| is this|
|000003c0| 20 61 20 6c 65 61 67 61 | 6c 20 75 73 61 67 65 20 | a leaga|l usage |
|000003d0| 69 6e 20 6c 61 6e 67 75 | 61 67 65 20 69 74 73 65 |in langu|age itse|
|000003e0| 6c 66 2c 0a 3e 20 3e 6f | 72 20 6a 75 73 74 20 61 |lf,.> >o|r just a|
|000003f0| 20 6d 69 73 74 61 6b 65 | 20 63 61 75 73 65 20 62 | mistake| cause b|
|00000400| 79 20 74 68 65 20 63 6f | 6d 70 69 6c 65 72 3f 29 |y the co|mpiler?)|
|00000410| 0a 3e 20 0a 3e 20 4d 61 | 6e 79 20 63 6f 6d 70 69 |.> .> Ma|ny compi|
|00000420| 6c 65 72 73 20 64 6f 6e | 27 74 20 63 68 65 63 6b |lers don|'t check|
|00000430| 20 74 68 61 74 20 79 6f | 75 20 67 61 76 65 20 70 | that yo|u gave p|
|00000440| 72 69 6e 74 66 28 29 20 | 74 68 65 20 61 70 70 72 |rintf() |the appr|
|00000450| 6f 70 72 69 61 74 65 20 | 74 79 70 65 20 6f 72 0a |opriate |type or.|
|00000460| 3e 20 6e 75 6d 62 65 72 | 20 6f 66 20 61 72 67 75 |> number| of argu|
|00000470| 6d 65 6e 74 73 20 74 6f | 20 6d 61 74 63 68 20 74 |ments to| match t|
|00000480| 68 65 20 70 72 69 6e 74 | 20 73 70 65 63 69 66 69 |he print| specifi|
|00000490| 65 72 73 2c 20 73 6f 20 | 74 68 65 79 20 77 6f 6e |ers, so |they won|
|000004a0| 27 74 20 67 69 76 65 20 | 61 6e 79 20 65 72 72 6f |'t give |any erro|
|000004b0| 72 0a 3e 20 6f 72 20 77 | 61 72 6e 69 6e 67 20 6d |r.> or w|arning m|
|000004c0| 65 73 73 61 67 65 20 66 | 6f 72 20 74 68 69 73 2e |essage f|or this.|
|000004d0| 0a 3e 20 0a 3e 20 49 74 | 27 73 20 61 20 6d 69 73 |.> .> It|'s a mis|
|000004e0| 74 61 6b 65 20 62 79 20 | 74 68 65 20 5f 70 72 6f |take by |the _pro|
|000004f0| 67 72 61 6d 6d 65 72 5f | 2c 20 6e 6f 74 20 62 79 |grammer_|, not by|
|00000500| 20 74 68 65 20 63 6f 6d | 70 69 6c 65 72 2e 0a 3e | the com|piler..>|
|00000510| 20 0a 0a 59 65 73 2e 20 | 49 20 74 68 69 6e 6b 20 | ..Yes. |I think |
|00000520| 74 68 61 74 20 69 73 20 | 77 68 79 20 49 20 65 6e |that is |why I en|
|00000530| 64 65 64 20 75 70 20 75 | 73 69 6e 67 20 74 77 6f |ded up u|sing two|
|00000540| 20 63 6f 6d 70 69 6c 65 | 72 73 20 6f 6e 20 6f 75 | compile|rs on ou|
|00000550| 72 20 53 47 49 20 62 6f | 78 65 73 2e 0a 49 20 75 |r SGI bo|xes..I u|
|00000560| 73 65 64 20 67 63 63 20 | 69 6e 20 74 68 65 20 66 |sed gcc |in the f|
|00000570| 69 72 73 74 20 69 6e 73 | 74 61 6e 63 65 20 62 65 |irst ins|tance be|
|00000580| 63 61 75 73 65 20 69 74 | 20 70 72 6f 64 75 63 65 |cause it| produce|
|00000590| 64 20 64 69 61 67 6e 6f | 73 74 69 63 73 20 73 75 |d diagno|stics su|
|000005a0| 63 68 20 61 73 20 74 68 | 69 73 0a 61 6e 64 20 61 |ch as th|is.and a|
|000005b0| 6c 73 6f 20 72 65 70 6f | 72 74 65 64 20 75 6e 75 |lso repo|rted unu|
|000005c0| 73 65 64 20 76 61 72 69 | 61 62 6c 65 73 2c 20 65 |sed vari|ables, e|
|000005d0| 74 63 2c 20 65 74 63 3b | 20 61 6e 64 20 74 68 65 |tc, etc;| and the|
|000005e0| 6e 20 72 61 6e 20 69 74 | 20 74 68 72 6f 75 67 68 |n ran it| through|
|000005f0| 20 74 68 65 20 4d 49 50 | 53 0a 63 6f 6d 70 69 6c | the MIP|S.compil|
|00000600| 65 72 20 66 6f 72 20 73 | 6f 6d 65 20 62 65 74 74 |er for s|ome bett|
|00000610| 65 72 20 70 72 6f 74 6f | 74 79 70 65 20 63 68 65 |er proto|type che|
|00000620| 63 6b 69 6e 67 2c 20 61 | 6e 64 20 63 68 65 63 6b |cking, a|nd check|
|00000630| 69 6e 67 20 64 6f 64 67 | 79 20 69 6e 69 74 69 61 |ing dodg|y initia|
|00000640| 6c 69 73 61 74 69 6f 6e | 73 2e 0a 41 6c 73 6f 20 |lisation|s..Also |
|00000650| 74 68 65 20 4d 49 50 53 | 20 63 6f 6d 70 69 6c 65 |the MIPS| compile|
|00000660| 72 20 28 49 4d 48 4f 29 | 20 6d 6f 72 65 20 6c 69 |r (IMHO)| more li|
|00000670| 6b 65 6c 79 20 74 6f 20 | 70 72 6f 64 75 63 65 20 |kely to |produce |
|00000680| 62 65 74 74 65 72 20 63 | 6f 64 65 2e 20 28 49 20 |better c|ode. (I |
|00000690| 74 68 69 6e 6b 20 74 68 | 65 79 20 62 6f 74 68 0a |think th|ey both.|
|000006a0| 75 73 65 20 74 68 65 20 | 73 61 6d 65 20 6f 70 74 |use the |same opt|
|000006b0| 69 6d 69 73 65 72 29 2e | 0a 0a 4d 61 78 2e 0a 0a |imiser).|..Max...|
|000006c0| 2d 2d 20 0a 20 20 20 20 | 5f 5f 5f 20 20 20 20 20 |-- . |___ |
|000006d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006e0| 20 6d 61 69 6c 74 6f 3a | 6d 61 78 2d 6c 74 6f 6e | mailto:|max-lton|
|000006f0| 40 74 63 70 2e 63 6f 2e | 75 6b 20 0a 20 20 2f 20 |@tcp.co.|uk . / |
|00000700| 20 2f 20 20 2f 20 20 5f | 20 20 20 20 20 20 20 2f | / / _| /|
|00000710| 20 20 20 20 20 2f 20 20 | 5f 20 20 5f 5f 20 5f 5f | / |_ __ __|
|00000720| 20 20 20 5f 20 20 20 5f | 5f 20 20 20 5f 0a 20 2f | _ _|_ _. /|
|00000730| 20 20 2f 20 20 2f 20 2f | 5f 2f 20 7c 2f 20 20 2f | / / /|_/ |/ /|
|00000740| 20 20 2f 20 20 2f 20 2f | 5f 2f 20 20 2f 20 20 2f | / / /|_/ / /|
|00000750| 5f 20 20 20 2f 5f 2f 20 | 2f 20 2f 20 2f 20 2f 5f |_ /_/ |/ / / /_|
|00000760| 2f 20 2f 7c 20 2f 0a 2f | 20 20 2f 20 20 2f 20 2f |/ /| /./| / / /|
|00000770| 20 20 2f 20 2f 7c 20 20 | 2f 5f 2f 5f 2f 20 2f 20 | / /| |/_/_/ / |
|00000780| 20 2f 20 20 2f 20 20 2f | 5f 20 20 2f 20 20 7c 20 | / / /|_ / | |
|00000790| 20 2f 20 2f 20 2f 20 2f | 20 20 2f 20 2f 20 7c 2f | / / / /| / / |/|
|000007a0| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+